Installing Libraries

Importing Libraries

Importing the data as Pandas DataFrame

Rename the name of the column

The time is imported as text (strings)

Changing time to datetime

Time as the data frame's index

Create a new column called "type" to help us in the pivoting

list number of earquakes by place, time, location, magnitude

Extract the hour from time_hour

Choosing color depending on the magnitude for each Earthquake

3352FF Blue

FCFF33 Yellow

FF33EC Pink

FF334C Red

Normalizing magnitude with max and min values

Function to create the features of the animation: time, location, icon to represent magnitude of Earthquake, etc

Calling the Function create_geojson_features and using it in our data frame and get the geojson

Creating Interactive And Animated Map